package com.sdksoft.readcard

import android.view.View
import com.sdksoft.readcard.databinding.ActivityNfcYjzBinding

/**
 * OCR识别
 */
class OCRIDCardActivity : BaseInitActivity() {
    private lateinit var activityNfcHuzhaoBinding: ActivityNfcYjzBinding

    override fun initView() {
        super.initView()
        setTitleText("OCR识别")
        activityNfcHuzhaoBinding = ActivityNfcYjzBinding.inflate(layoutInflater)
        baseActivityBinding.llContent.apply{
            addView(activityNfcHuzhaoBinding.root, 0)
        }
        activityNfcHuzhaoBinding.ivHead.visibility = View.GONE
        showValue()
    }

    private fun showValue() {
        val value = intent.getStringExtra("value") ?: ""
        activityNfcHuzhaoBinding.tvMsg.apply {
            text = "----识别结果---->"
            append("\n-------------------------\n")
            append(value)
        }
    }
}